export default {
  methods: {
    fenpei: function(data) {
      return this.request({
        url: this.fenpeiUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/json"
        },
        data
      })
    },
    getFenpeiUserInfo: function(data) {
      return this.request({
        url: this.getFenpeiUserInfoUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    getRoleInfo: function(data) {
      return this.request({
        url: this.getRoleAuthorizeInfoUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    roleAuthorize: function(data) {
      return this.request({
        url: this.roleAuthorizeUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    getHavedDataGroups: function(params) {
      return this.request({
        url: this.getHavedDataGroupsUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },
    updateDataGroupConfig: function(data) {
      return this.request({
        url: this.updateActDataUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    }
  }
}
